import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';

class Splash extends StatelessWidget {
  const Splash({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    bool lightMode =
        MediaQuery.of(context).platformBrightness == Brightness.light;
    return Scaffold(
      backgroundColor: lightMode ? Colors.black : const Color(0xff042a49),
      body: Column(
        children: [
          SizedBox(
            height: 300,
          ),
          Center(
              child: lightMode
                  ? SvgPicture.asset(
                      'assets/icons/logo.svg',
                      width: 100,
                    )
                  : Image.asset(
                      'assets/icons/logo.svg',
                      width: 100,
                    )),
          SizedBox(
            height: 30,
          ),
          Text(
            "Smile",
            style: TextStyle(
                fontSize: 30, fontWeight: FontWeight.bold, color: Colors.white),
          )
        ],
      ),
    );
  }
}
